<script src="../../resources/testharness.js"></script>
<script src="../../resources/testharnessreport.js"></script>

<canvas id="can" width=200 height=256 style="transform: translateZ(0)"></canvas>
<body>
<script>
test(function(t) {
    var can = document.querySelector("#can");
    var ctx = can.getContext("2d");
    ctx.fillStyle = "green";
    ctx.fillRect(0, 0, 300, 300);
    document.body.offsetTop;
    can.width = 300;
}, "Test passes if no crash.");
</script>
</body>
